﻿@model giaoxuhaison.Models.UserModels

@if (Request.IsAuthenticated) {
        using (Html.BeginForm("LogOff", "Admin", FormMethod.Post, new { id = "logoutForm" })) 
        {
            <div class="UserName">
                Xin chào, <b>@User.Identity.Name</b>!
                @Html.AntiForgeryToken()
                [<a href="javascript:document.getElementById('logoutForm').submit()">Đăng xuất</a>]
            </div>
        }            
} 
@*
else {
    <div class="PartialLogin">
        <div class="Partialmenuitem">@Html.ActionLink("Đăng ký", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</div>
        <div class="Partialmenuitem">@Html.ActionLink("Đăng nhập", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</div>
    </div>
}
*@
